<?php

defined('_JEXEC') or die('Restricted access');

class ConsoleViewCountingEvent extends JViewLegacy {
    function display($tpl = null) {
        if (count($errors = $this->get('Errors'))) {
            JLog::add(implode('<br/>', $errors), JLog::WARNING, 'jerror');
            
            return false;
        }
        parent::display($tpl);
    }
}